using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._IntelligenceTools
{
    /// <summary>
    /// <para>Filter By Attributes</para>
    /// <para>Find features that match an attribute query.</para>
    /// <para>查找与属性查询匹配的要素。</para>
    /// </summary>    
    [DisplayName("Filter By Attributes")]
    public class FilterByAttributes : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FilterByAttributes()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_features">
        /// <para>Input Features</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_input_search_expression">
        /// <para>Input Search Expression</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public FilterByAttributes(object _input_features, object _input_search_expression)
        {
            this._input_features = _input_features;
            this._input_search_expression = _input_search_expression;
        }
        public override string ToolboxName => "Intelligence Tools";

        public override string ToolName => "Filter By Attributes";

        public override string CallName => "intelligence.FilterByAttributes";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_input_features, _input_search_expression, _output_id_list];

        /// <summary>
        /// <para>Input Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_features { get; set; }


        /// <summary>
        /// <para>Input Search Expression</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Search Expression")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_search_expression { get; set; }


        /// <summary>
        /// <para>Output OIDs</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output OIDs")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _output_id_list { get; set; }


        public FilterByAttributes SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}